<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/x-icon" href="./images/mwyx.png"/>
    <title>精美登录页面</title>

    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-image: url("images/beijing.png"); /* 这里的'background.jpg'是图片的路径 */
            background-size: cover; /* 可选，让背景图片覆盖整个元素区域，保持图片比例 */
            background-position: center; /* 可选，设置背景图片的位置 */
            background-repeat: no-repeat; /* 可选，设置背景图片不重复 */
        }

        .login-container {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 300px;
            text-align: center;
        }

        .login-container h2 {
            margin-bottom: 20px;
            color: #333;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #666;
        }

        .form-group input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        button {
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            border: none;
            border-radius: 4px;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
<div class="login-container">
    <h2>欢迎！</h2>
    <form action="${pageContext.request.contextPath }/SelectAllServlet" method="post">
        <div class="form-group">
            用户名：<input type="text" name="username" required placeholder="请输入用户名">
        </div>
        <div class="form-group">
            密码:<input type="password" name="password" required placeholder="请输入密码">
        </div>
        <button type="submit">登录</button>
    </form>
</div>
</body>
</html>